import request from '@/router/axios';
import { baseUrl } from '@/config/env';

export const listDict = (dictTypeId,data) => request({
    url: baseUrl + '/system/dict/'+dictTypeId,
    method: 'get',
    params: data
});


export const addDict = (data) => request({
    url: baseUrl + '/system/dict',
    method: 'post',
    data: data
});


export const updateDict = (data) => request({
    url: baseUrl + '/system/dict',
    method: 'put',
    data: data
});


export const delDict = (dictId) => request({
    url: baseUrl + '/system/dict/'+dictId,
    method: 'delete'
});